package weaver.workflow.webservices;

public class ArrayOfWorkflowRequestLog  {
	private WorkflowRequestLog[] workflowRequestLog;

	public ArrayOfWorkflowRequestLog() {
	}

	public WorkflowRequestLog[] getWorkflowRequestLog() {
		return this.workflowRequestLog;
	}

	public void setWorkflowRequestLog(WorkflowRequestLog[] workflowRequestLog) {
		this.workflowRequestLog = workflowRequestLog;
	}

	public WorkflowRequestLog getWorkflowRequestLog(int i) {
		return this.workflowRequestLog[i];
	}

	public void setWorkflowRequestLog(int i, WorkflowRequestLog value) {
		this.workflowRequestLog[i] = value;
	}

	private Object __equalsCalc = null;
	public synchronized boolean equals(Object obj) {
		if (!(obj instanceof ArrayOfWorkflowRequestLog)) return false;
		ArrayOfWorkflowRequestLog other = (ArrayOfWorkflowRequestLog) obj;
		if (obj == null) return false;
		if (this == obj) return true;
		if (__equalsCalc != null) {
			return (__equalsCalc == obj);
		}
		__equalsCalc = obj;
		boolean _equals;
		_equals = true && 
			((this.workflowRequestLog==null && other.getWorkflowRequestLog()==null) || 
			 (this.workflowRequestLog!=null &&
			  java.util.Arrays.equals(this.workflowRequestLog, other.getWorkflowRequestLog())));
		__equalsCalc = null;
		return _equals;
	}

	private boolean __hashCodeCalc = false;
	public synchronized int hashCode() {
		if (__hashCodeCalc) {
			return 0;
		}
		__hashCodeCalc = true;
		int _hashCode = 1;
		if (getWorkflowRequestLog() != null) {
			for (int i=0;
				i<java.lang.reflect.Array.getLength(getWorkflowRequestLog());
				i++) {
				Object obj = java.lang.reflect.Array.get(getWorkflowRequestLog(), i);
				if (obj != null &&
					!obj.getClass().isArray()) {
					_hashCode += obj.hashCode();
				}
			}
		}
		__hashCodeCalc = false;
		return _hashCode;
	}

}
